home *** CD-ROM | disk | FTP | other *** search
- <WIZIF 0>
- <!-- Copyright (c) 1997-2001 Macromedia, Inc. All Rights Reserved. Consult Software License Agreement for more details. Version 1.0 - 2001-05-25 -->
- Input: var = value copied from that entered in UI for width; assumed to be numeric here
- Output: LFWIDTH attribute with value based on dropWidth - if var > 0
- </WIZIF>
-
- <WIZIF var GT 0>
- <WIZSET factWidth = 1.20>
-
- <WIZSET LFWidth = (var * factWidth)>
- <WIZSET PosDecPt = Find(LFWidth,'.')>
- <WIZIF PosDecPt EQ 0 AND Find(LFWidth,',')><WIZSET PosDecPt = Find(LFWidth,',')></WIZIF>
- <WIZIF PosDecPt GT 0>
- <WIZIF Mid(LFWidth,PosDecPt + 1,1) GT 4>
- <WIZSET LFWidth = Left(LFWidth,PosDecPt - 1) +1>
- <WIZELSE>
- <WIZSET LFWidth = Left(LFWidth,PosDecPt - 1)>
- </WIZIF>
- </WIZIF>
-
- <WIZIF 1>$$SpacingGap$${DefaultCase('LFWIDTH')}=$$LFWidth</WIZIF>
- </WIZIF>
-